package cn.zbh.pet.domain;

import cn.zbh.basic.domain.BasicDomain;
import cn.zbh.org.domain.Shop;
import cn.zbh.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BasicDomain {
    private String name;
    private BigDecimal costprice;
    private BigDecimal saleprice;

    private Long type_id;
    private PetType type;

    private String resources;
    private Integer state=0;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date onsaletime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date createtime = new Date();

    // 店铺id
    private Long shop_id;
    private Shop shop;

    private Long user_id;
    private User user;
    //详情
    private PetDetail petDetail;

    // 寻主的id
    private Long search_master_msg_id;
}
